package com.pojo;


import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

public class Project {

  private long id;
  private String projectName;
  private String projectDescription;
  private long money;
  private long day;
  private long status;
  @DateTimeFormat(pattern = "yyyy-MM-dd")
  @JsonFormat(pattern ="yyyy-MM-dd",timezone = "CMT+8")
  private Date deploydate;
  private long supportmoney;
  private long supporter;
  private long completion;
  private long userid;
  @DateTimeFormat(pattern = "yyyy-MM-dd")
  @JsonFormat(pattern ="yyyy-MM-dd",timezone = "CMT+8")
  private Date createdate;
  private long follower;
  private String headerPicturePath;


  public Project() {
  }

  public Project(long id, String projectName, String projectDescription, long money, long day, long status, Date deploydate, long supportmoney, long supporter, long completion, long userid, Date createdate, long follower, String headerPicturePath) {
    this.id = id;
    this.projectName = projectName;
    this.projectDescription = projectDescription;
    this.money = money;
    this.day = day;
    this.status = status;
    this.deploydate = deploydate;
    this.supportmoney = supportmoney;
    this.supporter = supporter;
    this.completion = completion;
    this.userid = userid;
    this.createdate = createdate;
    this.follower = follower;
    this.headerPicturePath = headerPicturePath;
  }

  public long getId() {
    return id;
  }

  public void setId(long id) {
    this.id = id;
  }


  public String getProjectName() {
    return projectName;
  }

  public void setProjectName(String projectName) {
    this.projectName = projectName;
  }


  public String getProjectDescription() {
    return projectDescription;
  }

  public void setProjectDescription(String projectDescription) {
    this.projectDescription = projectDescription;
  }


  public long getMoney() {
    return money;
  }

  public void setMoney(long money) {
    this.money = money;
  }


  public long getDay() {
    return day;
  }

  public void setDay(long day) {
    this.day = day;
  }


  public long getStatus() {
    return status;
  }

  public void setStatus(long status) {
    this.status = status;
  }


  public Date getDeploydate() {
    return deploydate;
  }

  public void setDeploydate(Date deploydate) {
    this.deploydate = deploydate;
  }


  public long getSupportmoney() {
    return supportmoney;
  }

  public void setSupportmoney(long supportmoney) {
    this.supportmoney = supportmoney;
  }


  public long getSupporter() {
    return supporter;
  }

  public void setSupporter(long supporter) {
    this.supporter = supporter;
  }


  public long getCompletion() {
    return completion;
  }

  public void setCompletion(long completion) {
    this.completion = completion;
  }


  public long getUserid() {
    return userid;
  }

  public void setUserid(long userid) {
    this.userid = userid;
  }


  public Date getCreatedate() {
    return createdate;
  }

  public void setCreatedate(Date createdate) {
    this.createdate = createdate;
  }


  public long getFollower() {
    return follower;
  }

  public void setFollower(long follower) {
    this.follower = follower;
  }


  public String getHeaderPicturePath() {
    return headerPicturePath;
  }

  public void setHeaderPicturePath(String headerPicturePath) {
    this.headerPicturePath = headerPicturePath;
  }

  @Override
  public String toString() {
    return "Project{" +
            "id=" + id +
            ", projectName='" + projectName + '\'' +
            ", projectDescription='" + projectDescription + '\'' +
            ", money=" + money +
            ", day=" + day +
            ", status=" + status +
            ", deploydate=" + deploydate +
            ", supportmoney=" + supportmoney +
            ", supporter=" + supporter +
            ", completion=" + completion +
            ", userid=" + userid +
            ", createdate=" + createdate +
            ", follower=" + follower +
            ", headerPicturePath='" + headerPicturePath + '\'' +
            '}';
  }
}
